import service from '../utils/request'

// 获取计划管理列表
export const getjihuagl = (data) => {
    return service({
      url: '/Gcxxjhb/queryTerritorys',
      method: 'POST',
      data
    })
}
// 添加计划
export const addjihuagl = (data) => {
    return service({
      url: '/Gcxxjhb/add',
      method: 'POST',
      data
    })
}
// 编辑计划
export const editjihuagl = (id, data) => {
    return service({
      url: `/Gcxxjhb/${id}`,
      method: 'POST',
      data
    })
}
// 删除计划
export const deletejihuagl = (id, data) => {
  return service({
    url: `/Gcxxjhb/del/${id}`,
    method: 'POST',
    data
  })
}
// 计划管理查询
export const searchjihuagl = (data) => {
  return service({
    url: `/Gcxxjhb/query`,
    method: 'POST',
    data
  })
}
// 获取合同管理列表
export const gethetonggl = (data) => {
  return service({
    url: '/Htglb/queryHtgl',
    method: 'POST',
    data
  })
}
// 新增合同管理
export const addhetonggl = (data) => {
  return service({
    url: '/Htglb/add',
    method: 'POST',
    data
  })
}
// 编辑合同
export const edithetonggl = (id, data) => {
  return service({
    url: `/Htglb/${id}`,
    method: 'POST',
    data
  })
}
// 获取经费管理列表
export const getExpenditure = (data) => {
  return service({
    url: '/Htglb/queryJfgl',
    method: 'POST',
    data
  })
}
// 新增经费
export const addExpenditure = (data) => {
  return service({
    url: '/Htglb/addes',
    method: 'POST',
    data
  })
}
// 编辑经费
export const editExpenditure = (id, data) => {
  return service({
    url: `/Htglb/b/${id}`,
    method: 'POST',
    data
  })
}
// 获取文件列表
export const getFilelist = (data) => {
  return service({
    url: '/Gcwjglb/queryWjgl',
    method: 'POST',
    data
  })
}
// 新增文件
export const addFilelist = (data) => {
  return service({
    url: '/Gcwjglb/add',
    method: 'POST',
    data
  })
}
// 编辑文件
export const editFilelist = (id, data) => {
  return service({
    url: `/Gcwjglb/${id}`,
    method: 'POST',
    data
  })
}
// 获取所属计划
export const getsubplan = (data) => {
  return service({
    url: '/Gcwjglb/querySsjh',
    method: 'POST',
    data
  })
}
// 合同管理查询接口
export const searchht = (data) => {
  return service({
    url: '/Htglb/query',
    method: 'POST',
    data
  })
}
// 文件管理查询接口
export const searchwjgl = (data) => {
  return service({
    url: '/Gcwjglb/queryWjgls',
    method: 'POST',
    data
  })
}